agents.anac.y2010.Southampton.utils
Class Pair<A,B>

java.lang.Object
  extended by agents.anac.y2010.Southampton.utils.Pair<A,B>

public class Pair<A,B>
extends java.lang.Object


Field Summary
 A fst
           
 B snd
           
 
Constructor Summary
Pair(A fst, B snd)
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
 int hashCode()
           
static
<A,B> Pair<A,B>
of(A a, B b)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

fst

public final A fst

snd

public final B snd
Constructor Detail

Pair

public Pair(A fst,
            B snd)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

of

public static <A,B> Pair<A,B> of(A a,
                                 B b)